package com.budwk.app.sqfw.models;

import com.budwk.app.sqfw.dto.SqfwCompleteflowDTO;
import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZY.Wang
 * @since 2023/7/4
 */
@Data
@Table("shequ.sqfw_report_file")
@Comment("生成的任务报告")
@ApiModel(description = "生成的任务报告文件")
public class Sqfw_reportFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("sqfw_id")
    @Comment("服务id")
    @ApiModelProperty(description = "服务id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String sqfwId;

    @Column("work_order_id")
    @Comment("工单id")
    @ApiModelProperty(description = "工单id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String workOrderId;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date createDate;

    @Column("create_by")
    @Comment("添加人id")
    @ApiModelProperty(description = "添加人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String createBy;

    @Column("update_date")
    @Comment("更新时间")
    @ApiModelProperty(description = "更新时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date updateDate;

    @Column("update_by")
    @Comment("修改人")
    @ApiModelProperty(description = "修改人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String updateBy;

    @Column("service_record_type")
    @Comment("文档类型")
    @ApiModelProperty(description = "文档类型")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String serviceRecordType;

    @Column("electronic_seal")
    @Comment("电子章")
    @ApiModelProperty(description = "电子章")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String electronicSeal;

    @Column("doc_detail")
    @Comment("文档详情")
    @ApiModelProperty(description = "文档详情")
    @ColDefine(type = ColType.TEXT, width = 255)
    private String docDetail;

    @Column("remark")
    @Comment("备注")
    @ApiModelProperty(description = "备注")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String remark;

    @Column("pdf_file_url")
    @Comment("pdf文件url")
    @ApiModelProperty(description = "pdf文件url")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String pdfFileUrl;

    @Column("word_file_url")
    @Comment("word文件url")
    @ApiModelProperty(description = "word文件url")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String wordFileUrl;

    @Column("report_name")
    @Comment("报告的名字")
    @ApiModelProperty(description = "报告的名字")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String reportName;


    private SqfwCompleteflowDTO completeflowDTO;
}
